feat(Camera): Synchronize image slices and cameras#615
feat(Camera): Synchronize image slices and cameras#615lchauvin wants to merge 3 commits intoKitware:mainfrom
Conversation
❌ Deploy Preview for volview-dev failed. Why did it fail? →Built without sensitive environment variables
|
|
The only issue right now, it that it seems the camera is reset when changing images (which defeat the purpose of having camera synchronized). I think it may have something to do with |
|
I'm not sure about the order VTK.js camera is updated on switching images. But maybe to diagnose: keep the existing reset stuff, (might be setting needed camera parameters not included in the "synced" ones) and add a composable/hook to trigger the position, focalpont, etc sync after the resets. |
|
I'm not sure where or how to do that. What shoud I hook for ? |
|
I'ed want to test if the problem is the timing of the camera property sync vs something else. So could add some temp code to call the sync function on a button press, or wherever you see a camera reset. |
|
It's still unclear to me how you want to test this. What I could tell so far, is that the properties of the sync cameras are well updated. I looked in the pinia store, and I could see the values changing for all cameras when sync. However, when I change image, it resets these properties, and because images are sync, it resets to all of them. |
|
I tried to monitor the events, but all I can see when changing image is an event called |
|
Any status on this? Or can we close? |
|
I'd still like to get this working, but I don't have time to work on it for now unfortunately. |
This feature will allow to synchronize images (i.e. slices) and cameras, so it will be easy to compare images from different modalities for a given subject for example